f = open("../test.txt", "r", encoding="UTF-8")
# print(type(f))
# print(f"read 10 byte result: {f.read(10)}")
# print(f"read all byte result: {f.read()}")
# lines = f.readline() #读取文件的全部行， 封装到列表中
# print(lines, type(lines))

# 文件打开后不论后面用什么方法，都会续接前一次操作的位置

# lineOne = f.readline()
# lineTwo = f.readline()
# lineThree = f.readline()
# print(lineOne, lineTwo, lineThree)

for line in f:
    print(line)

f.close()

